import jieba
from wordcloud import WordCloud
if __name__ == '__main__':
    text = "In the warm spring, flowers are coming out with a rush."
    words = jieba.lcut(text)
    new_text = " ".join(words)
    wordcloud = WordCloud().generate(new_text)
    wordcloud.to_file('词云实例图.png')